//
//  Change.h
//  Inventory
//
//  Created by Marco Alanen on 2007-08-02.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <Foundation/Foundation.h>

typedef enum _ChangeAction
{
	CHANGE_NONE,
	CHANGE_ADDED,
	CHANGE_REMOVED,
	CHANGE_ARTICLE_ID,
	CHANGE_NAME,
	CHANGE_STOCK,
	CHANGE_PRICE
} ChangeAction;

@interface Change : NSObject <NSCoding>
{
	ChangeAction action;
	NSString *value;
	NSDate *date;
}

-(id) init;

-(NSNumber *) action;
-(void) setAction:(ChangeAction)newAction;

-(NSString *) value;
-(void) setValue: (NSString *)newValue;

-(NSDate *) date;

@end
